<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="author" content="常伟">
        <title>智游教育问答</title>
        <link rel="stylesheet" href="/css/main.css">
    </head>
    <body>
        <header>
            <h1>智游教育问答</h1>
            <img src="http://www.zhiyou100.com/img/logo.png" alt="">
        </header>
        <main>
            
        {{if account}}
            {{account}}
            <a href="/user/signout">退出</a>
        {{else}}
            <a href="/user/signin">登录</a>
            <a href="/user/register">注册</a>
        {{/if}}
        <div>
            <a href="/ask">添加问题</a>
        </div>
        <hr>
        {{each questions as q i}}
        <h3>{{q.text}}</h3>
        <p>{{q.keyword}}，{{q.createUser.account}}，
            {{q.createTime | formatTime}}，{{q.ip}}</p>
        {{/each}}
        </main>
        <footer>
            <ul>
                <li>联系我们</li>
                <li>商业合作</li>
                <li>请客吃饭</li>
                <li>挣钱合作</li>
            </ul>
        </footer>
    </body>
</html>